<!--
 * @Description: vscode自带注释
 * @Version: 2.0
 * @Autor: lhl
 * @Date: 2021-04-03 23:18:54
 * @LastEditors: lhl
 * @LastEditTime: 2021-05-09 20:14:15
-->
<template>
  <selectLanguage />
  <loading v-show="loading"></loading>
  <router-view />
</template>
<script lang="ts">
  import { defineComponent, reactive, toRefs, computed } from 'vue'
  import selectLanguage from 'Components/selectLanguage/index.vue'
  import Loading from 'Components/loading/index.vue'
  import { useStore } from 'vuex'
  export default defineComponent({
    name: 'App',
    components: { selectLanguage, Loading },
    setup() {
      const store = useStore()
      const state = reactive({
        loading: computed(() => store.getters.isLoading)
      })
      return {
        ...toRefs(state)
      }
    }
  })
</script>
<style></style>
